package com.dearbinge.data.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dearbinge.data.pojo.shopManage.ShopManage;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShopManageMapper {
    Integer update(ShopManage shopManage);

    Integer insert(ShopManage shopManage);

    ShopManage getByshopCode(@Param("shopCode")String shopCode,@Param("shopId")String shopID);

    Integer deleted(String id);

    ShopManage getByUserId(String userId);

    /**
     * 根据id查询
     * @param id id
     * @return 店铺对象
     */
    ShopManage getById(Integer id);

    Integer count(String userId);

    List<Map<String, Object>> getComByUserId(String userId, Page page);

    Integer NotCopyCommdityIdCount(@Param("shopId") String shopId,@Param("copyId")  String copyId);

    List<Map<String, Object>> getNotCopyCommdityId(@Param("shopId") String shopId, @Param("copyId") String copyId, Page page);
}
